package com.liuzhilong.infrastructure.framework.spring.component;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component("testBeanPostProcessorComponet")
public class TestBeanPostProcessorComponet {
    private String name="";

    public void setName(String name) {
        this.name = name;
    }

    @PostConstruct
    public void init(){
        //初始化
        System.out.println(TestBeanPostProcessorComponet.class.getName()+" 初始化");
    }

    public void print(){
        System.out.println(TestBeanPostProcessorComponet.class.getName()+" "+name);

    }
}
